package com.digital.library.modules.system.service.impl;

import com.digital.library.modules.system.domain.SysUser;
import com.digital.library.modules.system.mapper.SysUserMapper;
import com.digital.library.modules.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> all() {
        return sysUserMapper.all();
    }

    @Override
    public SysUser getUserByName(String name) {
        return sysUserMapper.getUserByName(name);
    }

    @Override
    public SysUser authUser(SysUser sysUser) {
        return sysUserMapper.authUser(sysUser);
    }
}
